
package CCT220_Aula11_Exercicio01_13106;

/**
 * ******************************
 * Project: CCT220
 * Package: CCT220_Aula11_Exercicio01_13106
 * Class: Balao
 * Last Change: 22/09/2011 14:42:01
 * Description:
 * ******************************
 * 
 * @author marcel
 * @author 13106
 * 
 */
public class Balao extends TransporteAereo {

	private int pesoLargada;


	/**
	 * ******************************
	 * Constructor for
	 * Package: CCT220_Aula11_Exercicio01_13106
	 * Class: Balao
	 * LastChange: 22/09/2011 14:41:57
	 * ******************************
	 * 
	 * @param nome
	 * @param numPassageiros
	 * @param velocidadeAtual
	 * @param altitudeAtual
	 * @param pesoLargada
	 */
	public Balao(String nome, int numPassageiros, int velocidadeAtual,
	        int altitudeAtual, int pesoLargada) {

		super(nome, numPassageiros, velocidadeAtual, altitudeAtual);
		this.pesoLargada = pesoLargada;
	}


	/**
	 * ******************************
	 * Geter for pesoLargada in
	 * Package: CCT220_Aula11_Exercicio01_13106
	 * Class: Balao
	 * Field: pesoLargada
	 * Last Change: 22/09/2011 14:40:27
	 * Extra Description:
	 * ******************************
	 * 
	 * @return the pesoLargada
	 */
	public int getPesoLargada() {

		return pesoLargada;
	}


	/**
	 * ******************************
	 * Package: CCT220_Aula11_Exercicio01_13106
	 * Class: Balao
	 * Method: largarPeso
	 * Last Change: 22/09/2011 14:40:30
	 * Description:
	 * ******************************
	 * 
	 * @param peso
	 */
	public void largarPeso(int peso) {

		pesoLargada -= peso;
	}


	/**
	 * ******************************
	 * Package: CCT220_Aula11_Exercicio01_13106
	 * Class: Balao
	 * Method: aquecerAr
	 * Last Change: 22/09/2011 14:40:33
	 * Description:
	 * ******************************
	 * 
	 * @param temp
	 */
	public void aquecerAr(float temp) {

		this.subir(Integer.parseInt("" + (temp * 0.4)));
	}

}
